/*
 * Created on 2005-9-22
 * Author: Liao Xuefeng, asklxf@163.com
 * Copyright (C) 2005, Liao Xuefeng.
 */
package com.javaeedev.example.thread;

public class CalculateTask implements Task {

    private static int count = 0;

    private int num = count;

    public CalculateTask() {
        count++;
    }

    public void execute() {
        System.out.println("[CalculateTask " + num + "] start...");
        try {
            Thread.sleep(3000);
        }
        catch(InterruptedException ie) {}
        System.out.println("[CalculateTask " + num + "] done.");
    }

}
